import instance from '@/utils/request'
 
 
export const getAdminList = () => {
    return instance.get('/admin/list')
}
interface IAdmin{
     adminname:string
     password:string
     role:string,
     checkedKeys:string[]
}
export const doAddAdmin = (data:IAdmin)=>{
    return instance.post('/admin/add',data)
}


// // get请求带参数
// export const get1 = (s:Object) => {
//     return instance.get('/admin/list',{params:s})
// }